<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/5/6
  Time: 11:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*"
         contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<head>
    <title>Title</title>
    <link href="${pageContext.request.contextPath }/js/kindeditor-4.1.10/themes/default/default.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath }/js/kindeditor-4.1.10/lang/zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
    <link id="easyuiTheme" rel="stylesheet" type="text/css"	href="${pageContext.request.contextPath }/js/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/js/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/default.css">
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/easyui/jquery.easyui.min.js"></script>
    <script src="${pageContext.request.contextPath }/js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="${pageContext.request.contextPath }/js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath }/js/ajaxfileupload.js"></script>

    <script type="text/javascript"
            src="${pageContext.request.contextPath}/plug-in/ueditor/ueditor.config.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/plug-in/ueditor/ueditor.all.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/plug-in/ueditor/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript"
            src="${pageContext.request.contextPath}/plug-in/ueditor/third-party/jquery-1.10.2.min.js"></script>
    <script>
        var $editor = null;
        if(window.location.href.indexOf("load=detail")!=-1){
            $editor = new UE.ui.Editor({
                initialFrameHeight : 400,
                initialFrameWidth : 700,
                scaleEnabled : true,
                emotionLocalization:true,
                enableAutoSave:false,
                readonly:true,
                elementPathEnabled:false,
                wordCount:false,
                toolbars: [[
                    'source','bold', 'italic', 'underline', 'forecolor', 'backcolor','fontfamily', 'fontsize', '|',
                    'touppercase', 'tolowercase', 'simpleupload', 'insertimage', 'emotion', 'spechars'
                ]]
            });
        } else {
            $editor = new UE.ui.Editor({
                initialFrameHeight : 400,
                initialFrameWidth : 700,
                scaleEnabled : true,
                emotionLocalization:true,
                enableAutoSave:false,
                elementPathEnabled:false,
                wordCount:false,
                toolbars: [[
                    'source','bold', 'italic', 'underline', 'forecolor', 'backcolor','fontfamily', 'fontsize', '|',
                    'touppercase', 'tolowercase', 'simpleupload', 'insertimage', 'emotion', 'spechars'
                ]]
            });
        }
        $editor.render("content");


    </script>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
</head>
<body>

</body>
</html>
